package com.cn.lycss.service.impl;

import com.cn.lycss.dao.CuisineDao;
import com.cn.lycss.dao.impl.CuisineImpl;
import com.cn.lycss.model.CuisineModel;
import com.cn.lycss.model.ResultModel;
import com.cn.lycss.service.CuisineService;

import java.util.List;

public class CuisineServiceImpl implements CuisineService {
    private CuisineDao cuisineDao=new CuisineImpl();
    @Override
    public ResultModel findAll(CuisineModel model) {
        CuisineDao cuisineDao=new CuisineImpl();
        ResultModel resultModel=new ResultModel();
        List<CuisineModel>  list=cuisineDao.findAll(model);
        resultModel.setCode(0);
        resultModel.setData(list);
//        resultModel.setCount(cuisineDao.getCount(model));
        return resultModel;
//        return ResultModel.getInstance(cuisineDao.getCount(model), cuisineDao.findAll(model));
    }

    @Override
    public ResultModel add(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel getCount(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel findById(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel update(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel del(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel enable(CuisineModel cuisineModel) {
        return null;
    }


}
